home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DDJMAG / DDJ9203.ZIP / DRVMONIT.ZIP / LOGSTRUC.INC < prev    next >
Text File  |  1990-05-30  |  4KB  |  131 lines

  1. ;---------------------------------------------------------------    
  2. ;Logstruc.inc - structures for device driver logger            |
  3. ;--------------------------------------------------------------|
  4. ;
  5. dev_header      struc
  6. dev_chain       dd      ?
  7. dev_attrib      dw      ?
  8. dev_strat       dw      ?
  9. dev_int         dw      ?
  10. dev_header      ends
  11.  
  12. req_hdr         struc
  13. req_hdr_len     db      ?       ;length of request header
  14. req_hdr_unit    db      ?       ;subunit - block devices only
  15. req_hdr_cmd     db      ?       ;command code
  16. req_hdr_status  dw      ?       ;status of command
  17. req_hdr_reserv  db      8 dup(?) 
  18. req_hdr         ends
  19.  
  20. cmd0_req        struc
  21. cmd0_std_hdr    db      size req_hdr dup(?) ;13 byte standard header
  22. cmd0_num_units  db      ?
  23. cmd0_eadrs_off  dw      ?
  24. cmd0_eadrs_seg  dw      ?
  25. cmd0_bpb_ptr    dd      ?
  26. cmd0_dev_num    db      ?
  27. cmd0_req        ends
  28.  
  29. cmd2_req        struc
  30. cmd2_std_hdr    db      size req_hdr dup(?) ;13 byte standard header
  31. cmd2_media_des  db      ?
  32. cmd2_buf_ptr    dd      ?
  33. cmd2_bpb_ptr    dd      ?
  34. cmd2_req        ends
  35.  
  36. ioctl_req       struc
  37. ioctl_std_hdr   db      size req_hdr dup(?) ;13 byte standard header
  38. ioctl_media_des db      ?
  39. ioctl_buf_ptr   dd      ?
  40. ioctl_count     dw      ?
  41. ioctl_req       ends
  42.  
  43.  
  44.  
  45. ioctl_out_data  struc    
  46. user_buf_ptr    dd      ?
  47. user_buf_size   dd      ?
  48. ioctl_out_data  ends     
  49.  
  50. ioctl_in_data   struc    
  51. drv_buf_count   dd      ?
  52. drv_config_dat  dw      ?
  53. drv_cmd_tbl     dw      ?
  54. ioctl_in_data   ends     
  55.  
  56. a_word          struc
  57. w_lsb           db      ?
  58. w_msb           db      ?
  59. a_word          ends 
  60.  
  61.  
  62. doub_word       struc   
  63. d_offset        dw      ?
  64. d_segment       dw      ?
  65. doub_word       ends    
  66.  
  67.  
  68. stack_area1     struc
  69. mdrv_off        dw      ?
  70. mdrv_seg        dw      ?
  71. mdrv_flags      dw      ?
  72. mdrv_ret_off    dw      ?
  73. mdrv_ret_seg    dw      ?
  74. stack_area1     ends 
  75.  
  76.  
  77. config_options  struc
  78. output_device   dw      ?       ;NULL device, printer, screen or memory (0-3)
  79. show_buf_out    db      ?       ;TRUE if show output buffers
  80. max_show_out    dw      ?       ;maximum output buffers to display
  81. show_buf_in     db      ?       ;TRUE if show input buffers
  82. max_show_in     dw      ?       ;maximum input buffers to display
  83. show_cmd_blk    db      ?       ;show cmd req on entry, exit, or both (1-3)
  84. log_start_num   dw      ?       ;sequence number at which to start logging
  85. max_to_log      dw      ?       ;max requests to log
  86. log_all         db      ?       ;TRUE if log all requests
  87. wait_key_err    db      ?       ;TRUE if stop for key on error
  88. config_options  ends
  89.  
  90. req_info        struc
  91. ri_cmd_code     db      ?       ;command number
  92. ri_descrip      dw      ?       ;offset to command description
  93. ri_iotbl_ptr    dw      NULL    ;ptr to i/o info
  94. ri_func_ptr     dw      NULL    ;ptr to function info
  95. ri_log_flag     db      TRUE    ;default to logging request 
  96. req_info        ends
  97.  
  98. func            struc
  99. f_off_ptr      dw      ?       ;offset of function block ptr
  100. f_off_cat_code dw      ?       ;offset that has category code
  101. f_off_fun_code dw      ?       ;offset that has function code
  102. f_detail_ptr   dw      ?       ;ptr to more table info
  103. f_sub_in       db      ?       ;true if function in main block
  104. func            ends
  105.  
  106. func_detail     struc
  107. fd_cat_code     db      ?       ;category code
  108. fd_fun_code     db      ?       ;function code
  109. fd_descrip      dw      ?       ;offset to function description
  110. fd_packet_len   db      ?       ;length of function request block
  111. fd_iotbl_ptr    dw      NULL    ;ptr to i/o info
  112. fd_log_flag     db      TRUE    ;default to logging request 
  113. func_detail     ends
  114.  
  115. io_table        struc
  116. io_buf_ptr_off  dw      ?       ;offset of i/o ptr from start cmd block
  117. io_count        dw      ?       ;offset of word that contains count
  118. io_type         db      ?       ;1 if input , 2 if output
  119. io_bs_indic     db      ?       ;true if use block size from BPB
  120. io_off_indic    dw      ?       ;offset of element that tells block size
  121. io_table        ends
  122.  
  123. io_bs_elements  struc
  124. io_bs_value     db      ?       ;value that tells block size
  125. io_bs           dw      ?       ;size to use per value
  126. io_bs_elements  ends
  127.  
  128.  
  129.  
  130. ;------end of logstruc.inc
  131.